Task-driven modeling